//
//  Place.h
//  gong
//
//  Created by echo on 14-1-11.
//  Copyright (c) 2014年 echo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UICreator.h"
#import "PositionTools.h"
#import "Constants.h"
#import "AutoRemoveMessageView.h"

@class NPC;

@interface Place : NSObject
{
    __weak UIView *_containerView;
    NSString *_bk;
    NSString *_music;
    NSString *_smallImage;
    UIImageView *_smallImageView;
    
    NSInteger _rankLimit;
    BOOL _needTransition;
    NSMutableArray *_transitionImageArray;
    
    NSString *_placeClassName;
}

@property (nonatomic, weak) UIImageView *streetView;
@property (nonatomic, copy) NSString *name;

- (id)init:(UIView*)container;
- (void)initDefault;

- (BOOL)canEnter;
- (void)enter;
- (void)createDefault;

- (void)createSmallImage:(CGPoint)position;

- (void)create;
- (void)createWithBackground:(NSString*)bk;

- (void)playMusic:(NSString*)music;
- (void)showTalk:(NSString *)talk npc:(NPC*)npc;

- (void)leave;
- (void)initTransitionInfo;
- (void)clearTransitionInfo;

@end
